#pragma once
#ifndef SDEF_MENUSCENE
#define SDEF_MENUSCENE

#include <SypX/SypX.h>
#include "Scene.h"


namespace SheepDefence
{
	class MenuScene : public Scene
	{
	public:
		MenuScene(SypX::Font* f);
		~MenuScene(void);
		virtual void init();
		virtual void run();
		virtual void handleInput();
	private:		
		SypX::Renderer* render;
		SypX::Engine* engine;
		SypX::Canvas* canvas;

		SypX::Mesh* bgMesh;
		SypX::Texture* bgTex, * playTex, * challengeTex, * tutorialTex, * moreTex;
		SypX::MeshInstance* bg;
		SypX::SoundBuffer* snd;
		SypX::Font* font;
		
		SypX::GrowingButton* play, *challenge, * tutorial, * more;
		std::vector<SypX::GrowingButton*> buttons;

		float totalTime;

		void goPlay(SypX::GuiComponent* g, SypX::Event& e);
		void goMore(SypX::GuiComponent* g, SypX::Event& e);
		void goTutorial(SypX::GuiComponent* g, SypX::Event& e);
	};
}
#endif